package com.vs.meepet.network.api

import com.vs.meepet.network.RetrofitClient
import com.vs.meepet.network.base.WrapperData
import okhttp3.RequestBody
import retrofit2.Call
import retrofit2.http.Body
import retrofit2.http.POST

/**
 *
 * 作者：柯嘉少
 * 邮箱：2449926649@qq.com
 * 日期: 2024/9/18
 * 修改人: xxx(des)
 * 说明:
 * 版本: 1.0
 */

internal val userApi: UserApi by lazy {
    RetrofitClient.instance.getCommonRetrofitClient("https://user-facade-api.tandian.net")
        .create(UserApi::class.java)
}

interface UserApi {

    @POST("/sms/v1/sendCaptcha")
    fun sendCaptcha(@Body params: RequestBody): Call<WrapperData<Boolean?>>
}